package com.ruoyi.school.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户模块对象 user
 * 
 * @author ruoyi
 * @date 2024-04-10
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String userName;

    /** 头像 */
    @Excel(name = "头像")
    private String userPic;

    /** key */
    @Excel(name = "key")
    private String sessionKey;

    /** open_id */
    @Excel(name = "open_id")
    private String openId;

    /** 状态 */
    @Excel(name = "状态")
    private String status;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userName", getUserName())
            .append("userPic", getUserPic())
            .append("sessionKey", getSessionKey())
            .append("openId", getOpenId())
            .append("status", getStatus())
            .toString();
    }
}
